/**
 * Copyright 2010 upTick Pty Ltd
 *
 * Licensed under the terms of the GNU General Public License version 3 
 * as published by the Free Software Foundation. You may obtain a copy of the
 * License at: http://www.gnu.org/copyleft/gpl.html
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations 
 * under the License.
 */

package au.com.uptick.serendipity.server.domain;

public class EntityTokens {

    // public static final String VERSION = "Version";

    // Account table name
    public static final String ACCOUNT_TABLE = "Account";
    // Account column names
    public static final String ACCOUNT_ID_COLUMN = "AccountId";
    public static final String ACCOUNT_NAME_COLUMN = "AccountName";
    public static final String ACCOUNT_NUMBER_COLUMN = "AccountNumber";
    public static final String PARENT_ACCOUNT_COLUMN = "ParentAccount";
    public static final String PRIMARY_CONTACT_COLUMN = "PrimaryContact";
    public static final String EMAIL_PRIMARY_CONTACT_COLUMN = "EmailPrimaryContact";
    public static final String MAIN_PHONE_COLUMN = "MainPhone";
    public static final String CITY_COLUMN = "City";

    // Account column lengths
    public static final int ACCOUNT_NAME_COLUMN_LENGTH = 100;
    public static final int ACCOUNT_NUMBER_COLUMN_LENGTH = 50;
    public static final int PARENT_ACCOUNT_COLUMN_LENGTH = 100;
    public static final int PRIMARY_CONTACT_COLUMN_LENGTH = 100;
    public static final int EMAIL_PRIMARY_CONTACT_COLUMN_LENGTH = 50;
    public static final int MAIN_PHONE_COLUMN_LENGTH = 50;
    public static final int CITY_COLUMN_LENGTH = 50;

    // Account column nullable
    public static final boolean ACCOUNT_NUMBER_COLUMN_NULLABLE = true;
    public static final boolean PARENT_ACCOUNT_COLUMN_NULLABLE = true;
    public static final boolean PRIMARY_CONTACT_COLUMN_NULLABLE = true;
    public static final boolean EMAIL_PRIMARY_CONTACT_COLUMN_NULLABLE = true;
    public static final boolean MAIN_PHONE_COLUMN_NULLABLE = true;
    public static final boolean CITY_COLUMN_NULLABLE = true;


    // Contact table name
    public static final String CONTACT = "Contact";
}
